<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/jsp/commons/taglibs.jsp"%>
<!DOCTYPE html >
<html>
<head>
<jsp:include page="/jsp/commons/cssinclude.jsp"></jsp:include>
<jsp:include page="/jsp/commons/scriptinclude.jsp"></jsp:include>
<meta charset="utf-8">
<title>晶品科技信息管理系统-调度中心</title>
<meta name="keywords" content="">
<meta name="description" content="">

<script type="text/javascript">
	//分页查询
	function queryCategory() {
		var path = "${ctx}/customer/customerAction!listCustomersDialog.action";
		query(path);
	}

	function queryPage(path, pageindex) {
		pageIndex = pageindex;
		query(path);
	}
	
	$(document).ready(function() {
		queryCategory();

	});
</script>
</head>
<body>

	<div class="mainbox">
		<div class="main_content">
			<div class="main_right">
				<div class="main_rightbox">
					<!--面包屑 begin-->
					 
					<!--配置图片 begin-->

					 
					<!--查询 begin-->
					<div class="user">
						<div class="user_search">
							<form id="businessForm" method="post">
								<div class="frm_cont" id="lmname">
									<label for="lmname">客户名称：</label> <input type="text"
										title="请输入报修单位" value="" id="lmname" 
										 name="customer.name" />
								</div>
								<div class="frm_cont" id="flm">
									<label for="flm">客户联系人：</label> <input type="text"
										value="" title="请输入客户联系人" id="flm" 
										 name="customer.linkman" />
								</div>
								<div class="frm_cont" id="spfl">
									<label for="spfl">客户联系号码：</label> <input type="text"
										id="contactPhone" value="" title="请输入客户联系号码" name="customer.contactPhone"
										style="cursor: pointer" value="" />
								</div>
								<div class="frm_cont" id="lrfs">
									<label for="lrfs">状态：</label> <select id="state"
										name="customer.state"
										style="border: 1px solid #DDDDDD; color: #999999;   height: 29px; line-height: 29px; padding-left: 5px; width: 225px;">
										<option value="">---请选择---</option>

										<option value="0">无效</option>
										<option value="1">有效</option>

									</select>
								</div>

							</form>
						</div>
						<div class="tbn_search" id="btncenter">
							<a href="javascript:void(0)"
								onclick="queryPage('${ctx}/customer/customerAction!listCustomersDialog.action',0)">查询</a>
						</div>
						<div class="clear"></div>
					</div>
					<!--表格 & 分页-->
					<div id="Searchresult">
						<table width="100%" border="0" cellspacing="0" cellpadding="0"
							class="tab">
							<tr>
								<th>序号</th>
								<th>名称</th>
								<th>联系人</th>
								<th>联系人电话</th>
								<th>最高领导</th>
								<th>最高领导联系方式</th>
								<th>状态</th>
								<th>创建时间</th>
								<th>修改时间</th>
								<th>操作</th>
							</tr>
							<tr>
								<td colspan="8">正在查询...</td>
							</tr>
						</table>
					</div>

				</div>
			</div>
		</div>
	</div>


	<!-- JQ -->
	<script type="text/javascript">
		function updateStatus(dispatchId, flag) {
			//提示语
			var tip = "";
			if (flag == "Y") {
				tip = "启用";
			} else {
				tip = "禁用";
			}

			//异步请求修改状态
			if (confirm("确定要" + tip + "该条记录？")) {
				$
						.post(
								"${ctx}/dispatch/dispatchAction!updateState.action",
								{
									random : Math.random(),
									"dispatch.id" : dispatchId,
									"dispatch.state" : flag
								},
								function(data) {
									var jsonData = strToJson(data);
									if (jsonData.flag == "error") {
										alert(jsonData.errorMsg);
									}
									window.location.href = "${ctx}/dispatch/dispatchAction!initdispatch.action";
								});
			}
		}
	</script>
</body>
</html>